# # list1=['小周','小吴','小政','小王','李良']
# # def f(list1):
# #     if len(list1)>=5:
# #         print(list1[0:2])
# #     else:
# #         print('None')
# # f(list1)
#
# list3=list(input('请输入：'))
# def f(list3):
#     if len(list3)>=5:
#         print(list3[0:2])
#     elif len(list3) <=5:
#         print(None)
# f(list3)
#
#
#
# # list2=['小周','小吴','小政','小王','李良']
# # print(type(list2))
# # print(list2)
# # list1=['小周','小吴','小政','小王','李良']
# # for i in range(len(list1)):
# #     if len(list1) < 5:
# #         print(None)
# #     else:
# #         print(list1[0:2])
# #         break
#
# # list1=['小周','小吴','小政','小王','李良']
# # list2=[]
# # def f(list1):
# #     for i in range(len(list1)):
# #         list2.append(list1[1::2])
# #     return list2[0]
# # print(f(list1))
#
#
#
# def niupi():
#     demo_list = ['小莽', '小铁', '小哦', '小牛', '小皮']#旧列表
#     mangfu=demo_list[0:5]  #切片把demo_list里面的内容提出来
#     demo_list1 = []   #新列表
#     for i in range(0, len(mangfu)):# for循环 mangfu 的长度
#         if (i % 2) == 0: #判断是否偶数
#             print('哦，牛皮')  #如果是偶数不用输出 这个写个none就可以
#         else:
#              o=demo_list[i] # 现在i是奇数  o把mangfu中奇数部分给提出来
#              demo_list1.append(o) # 添加
#     print(demo_list1) # 输出
# print(niupi())  #def函数输出


list1 = ['小周','小吴','小郑','小王','小李']
list2 = []
for i in range(0,len(list1)):
    if i%2 == 1:
        # print(list1[i])
        list2.append(list1[i])
print(list2)




# def f(list3):
#     if isinstance(list3,list):
#         if len(list3)>=5:
#             print(list3[0:2])
#         elif len(list3) <=5:
#             print(None)
#     else:
#         print("非列表")
# # list3 = ['1','2','3','4','5']
# list3 = "sdfghj"
# f(list3)

list1=['小周','小吴','小政','小王','小李']
list2=[]
for i in range(0,len(list1)):
    if i%2==1:
        list2.append(list1[i])
print(list2)




